vim.api.nvim_exec([[
nnoremap <silent> f :HopChar1CurrentLineAC<CR>
nnoremap <silent> F :HopChar1CurrentLineBC<CR>
]], true)

require'hop'.setup()
-- vim.api.nvim_set_keymap('n', 'f', "<cmd>lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = true })<cr>", {})
-- vim.api.nvim_set_keymap('n', 'F', "<cmd>lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = true })<cr>", {})
vim.api.nvim_set_keymap('n', ';b', "<cmd>HopWordBC<cr>", {})
vim.api.nvim_set_keymap('n', ';w', "<cmd>HopWordAC<cr>", {})
vim.api.nvim_set_keymap('n', ';j', "<cmd>HopLineAC<cr>", {})
vim.api.nvim_set_keymap('n', ';k', "<cmd>HopLineBC<cr>", {})
vim.api.nvim_set_keymap('n', ';e', "<cmd>lua require'hop'.hint_words({ hint_position = require'hop.hint'.HintPosition.END })<cr>", {})
-- jump after the end of the word
-- require'hop'.hint_words({ hint_position = require'hop.hint'.HintPosition.END, hint_offset = 1 })
